package com.wf.demo.info.dao;

import com.wf.demo.info.pojo.Device;
import com.wf.demo.info.pojo.Repair;

import org.springframework.data.domain.Page;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface RepairDAO extends JpaRepository<Repair,Long> {
    //提供根据设备查找所有维修记录的方法,用于list界面用
    Page<Repair> findByDevice(Device device, Pageable pageable);

    List<Repair> findByDeviceOrderById(Device device);
    //

}
